import request from '@/utils/request'

export const fetchDepartmentList = () => request.get('/company/department')

export const getManagerList = () => request.get('/sys/user/simple')

export const addDepart = data => request.post('/company/department', data)
// 获取详情
export const fetchDetail = data => request.get(`/company/department/${data}`)

export const delDepart = data => request.delete(`/company/department/${data}`)

export const updateDepart = data => request.put(`/company/department/${data.id}`, data)
